<script>
import usePoint from "@/hooks/usePoint";
import {onBeforeMount} from "vue";
export default{
  // eslint-disable-next-line vue/multi-word-component-names
  name:'Test',

  setup(){
    onBeforeMount(()=>{
      console.log('---onBeforeMount2---')
    })
    let point = usePoint()

    return{
      point
    }
  }

}



</script>

<template>
  <h2>我是Test组件</h2>
  <h2>当前点击时鼠标的坐标为：x:{{point.x}}, y:{{point.y}}</h2>


</template>

<style scoped>

</style>